//
//  GoodsWithMessage.m
//  MyProject
//
//  Created by dllo on 15/10/29.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "GoodsWithMessage.h"

@implementation GoodsWithMessage

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.nameId = value;
    }
    if ([key isEqualToString:@"author"]) {
        self.username = [value objectForKey:@"username"];
        self.avatar1 = [value objectForKey:@"avatar"];
    }
    if ([key isEqualToString:@"pics"]) {
        self.url = [[value firstObject] objectForKey:@"url"];
    }
}

@end
